from core import src
def wrapper(f):
    def inner():
        if src.dic['flag']:
            return f()
        else:
            return src.enter()
    return inner